﻿using Abp.Domain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AVIS.OutBound.Cities
{
    /// <summary>
    /// 城市信息
    /// </summary>
    [Table("avisCity")]
    public class City : AvisBaseEntity
    {
        /// <summary>
        /// 地区编号
        /// </summary>
        public string RegionCode
        {
            get
            {
                return _RegionCode;
            }
            set
            {
                _RegionCode = value == null ? "" : value.Trim();
            }
        }
        private string _RegionCode;

        /// <summary>
        /// 英文名称 
        /// <summary>   
        public string ENName
        {
            get
            {
                return _ENName;
            }
            set
            {
                _ENName = value == null ? "" : value.Trim();
            }
        }
        private string _ENName;

        /// <summary>
        /// 中文名称
        /// </summary>
        public string CNName
        {
            get
            {
                return _CNName;
            }
            set
            {
                _CNName = string.IsNullOrWhiteSpace(value) ? _ENName : value.Trim();
            }
        }
        private string _CNName;

        /// <summary>
        /// 中文拼音
        /// </summary>
        public string CNPY { get; set; }

        /// <summary>
        /// 附近门店的Code, 如果值等于 999 ，则表示没有附近门店
        /// </summary>
        public string AGDCode { get; set; }

        /// <summary>
        /// 洲
        /// </summary>
        public string Continent { get; set; }

        /// <summary>
        /// 介绍
        /// </summary>
        public string Introduction { get; set; }

        /// <summary>
        /// 图片
        /// </summary>
        public string Image { get; set; }

        /// <summary>
        /// 是否热门
        /// </summary>
        public bool? IsHot { get; set; }

        /// <summary>
        /// 是否标红
        /// </summary>
        public bool? IsRed { get; set; }

        /// <summary>
        /// 是否置顶
        /// </summary>
        public bool? IsTop { get; set; }

        /// <summary>
        /// 是否底部显示
        /// </summary>
        public bool? IsFooter { get; set; }

        /// <summary>
        /// 点击量
        /// </summary>
        public int CusClick { get; set; }

        /// <summary>
        /// 推荐车组
        /// </summary>
        public string RecommendCar { get; set; }

        /// <summary>
        /// 位置编号
        /// </summary>
        public string LocationCode { get; set; }
    }
}

